package com.kantboot.api.email.event;

import com.kantboot.api.email.domain.entity.ApiEmail;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 发送邮件事件
 */
@Getter
@Setter
public class SendEmailEvent extends ApplicationEvent {

    /**
     * 邮件
     */
    private ApiEmail email;


    public SendEmailEvent(Object source, ApiEmail email) {
        super(source);
        this.email = email;
    }

}
